import org.junit.Test;

import utl.mofen.delphi.cds.DeltaUnPackage;
import utl.mofen.intf.IDBOperator;
import utl.mofen.script.ScriptObjectFactory;
import utl.mofen.utils.ResLoader;

public class DeltaUnPackageTester {
	@Test
	public void tester() throws Exception
	{
		String s = ResLoader.getString("/script/Delta.txt");
		DeltaUnPackage deltaUnPackage = new DeltaUnPackage();
		IDBOperator dbOpera = ScriptObjectFactory.getDBOperator("main");
		try
		{		
			deltaUnPackage.setDBOperator(dbOpera);
			deltaUnPackage.setPackString(s);
			deltaUnPackage.execute();
			System.out.println(deltaUnPackage.getSqlHead());
			System.out.println(deltaUnPackage.getSqlList());
		}finally
		{
			dbOpera.close();
		}

	}
}
